home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5586 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: Inter.NL.net!usenet
  2. From: Auke.Reitsma@net.HCC.nl (Auke Reitsma)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: What is a right hand pointing arrow?
  5. Date: Mon, 19 Feb 1996 21:54:04 GMT
  6. Organization: Inter.NL.net, The Internet Provider in The Netherlands.
  7. Message-ID: <4garpk$okn@altrade.nijmegen.inter.nl.net>
  8. References: <824587015snz@metsys.demon.co.uk> <4g794c$em8@altrade.nijmegen.inter.nl.net> <4g7lrc$kg3@barnacle.iol.ie> <danpop.824675449@rscernix>
  9. Reply-To: Auke.Reitsma@net.HCC.nl
  10. NNTP-Posting-Host: rt98-0.rotterdam.nl.net
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. danpop@mail.cern.ch (Dan Pop) wrote:
  14.  
  15. > In <4g7lrc$kg3@barnacle.iol.ie> jab@iol.ie (J Alan Brogan) writes:
  16.  
  17. > >Auke.Reitsma@net.HCC.nl (Auke Reitsma) wrote:
  18. > >
  19. > >
  20. > >>That right arrow is a end of file marker for text files. Its value is
  21. > >>0x27. 
  22. > >
  23. > >the decimal value is 27, 
  24. > >
  25. > >0x27 is ' (single quote)
  26.  
  27. > 27 (033 or 0x1B) is ASCII ESC
  28.  
  29. > 26 (aka ^Z) is used by some brain dead MSDOS software as an end of file
  30. > marker.
  31.  
  32. And my brain certainly worked like above mentioned software ... :-(
  33. My excuses for posting wrong info!
  34.  
  35. To make it good: AFAIK all MSDOS compilers always treat a ^Z as a true
  36. end-of-file when the file is opened using fopen( "foo", "r" ). I.e. text
  37. mode. Binary mode is required to ignore ^Z, or rather treat it as a normal
  38. (control) character.
  39.  
  40.  
  41. Greetings from Delft, The Netherlands.
  42.  
  43. Auke Reitsma
  44.  
  45.